package com.xiaocheng.core.visitor.impl;

import com.xiaocheng.core.visitor.VisitorInterface;

public class Clinet {
	public static void main(String[] args) {
		Libary libary = new Libary();
		libary.add(new MathBook(1.23,"数学"));
		libary.add(new MathBook(1.23,"物理"));
		libary.add(new OlogyBook(1.23,"计算机"));
		
		VisitorInterface schoolmaster = new SchoolMaster();
		
		libary.show(schoolmaster);
		
		((SchoolMaster) schoolmaster).getTotelAmount();
		((SchoolMaster) schoolmaster).getOlogyAmount();
		
		
	}
}
